package com.tianji.login.controller;

import com.tianji.common.Result;
import com.tianji.common.anno.RepeatSubmit;
import com.tianji.common.utils.SecurityUtil;
import com.tianji.login.service.AuthService;
import com.tianji.login.service.SysUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;

@RestController
@RequiredArgsConstructor
@RequestMapping("/auth")
@Api(tags = "用户授权相关接口")
public class AuthController {

    private final SysUserService userService;

    @PostMapping("/importUser")
    @ApiOperation(value = "使用线程池批量导入千万级客户信息到es")
    public Result createOrder() {
        return userService.createOrder();
    }

}
